package hikari.persistence.propertieseditor.editors;

import com.gooddies.texteditors.validation.AbstractValidator;
import hikari.persistence.file.FileSection;
import java.io.IOException;
import javax.swing.JComponent;

/**
 * @author sad
 */
public interface IPropertyEditor {

    Object getEditorValue();

    void setEditorValue(Object value);

    void setMax(Object max);

    void setMin(Object min);

    void setValidator(AbstractValidator validator);

    void setMaxLength(String length);

    JComponent getJComponent();

    void save(String fieldName, FileSection section) throws IOException;
    void read(String fieldName, FileSection section) throws IOException;
}
